/*
 * @Author: your name
 * @Date: 2024-12-21 11:53:42
 * @LastEditTime: 2024-12-21 13:59:29
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \project-specification-vue3-ts\src\router\index.ts
 */
//创建一个路由，并暴露
import { createRouter, createWebHistory } from "vue-router"
//引入呈现组件
import Home from '../components/Route/components/Home.vue'
import News from '../components/Route/components/News.vue'
import About from '../components/Route/components/About.vue'

const router = createRouter({
    history:createWebHistory(),
    routes:[
        {
        path:'/home',
        component:Home
        },
        {
        path:'/news',
        component:News
        },
        {
        path:'/about',
        component:About
        }
    ]
})

export default router 